home *** CD-ROM | disk | FTP | other *** search
- ******************************************************************
- * COPYRIGHT (C) 1986 by Donald Krantz and James Stanley
- * - Note: This is a real, live, actual, registered copyright,
- * and should be treated as such. This source code is from
- * the book "68000 Assembly Language", Krantz and Stanley,
- * Addison-Wesley Publishing Company, Reading, MA, 1986.
- *
- * Permission granted by the authors for non-commercial use
- * in programs released to the public domain, as long as this
- * copyright notice remains attached and visible.
- *
- *****************************************************************
- * GROUP 4 (PC Function Key) Commands
-
- xref _getkey,case,up,down,right,left,down_page,up_page
- xref del_left,toggle,home,eof,default
- xdef group_4
-
- *****************************************************************
- * GROUP_4 - group 4 (PC Cursor) commands
- group_4:
- bsr _getkey * get switch key
- move.l #table4,a0 * load up case table address
- bra case * returns to caller of group_2
- *****************************************************************
- * TABLE_4 - switch table for group 4 commands
- table4:
- dc.w 10 * 10 choices
- dc.w $48 * cursor up key
- dc.l up
- dc.w $50 * cursor down key
- dc.l down
- dc.w $4D * cursor right key
- dc.l right
- dc.w $4B * cursor left key
- dc.l left
- dc.w $51 * PgDn key
- dc.l down_page
- dc.w $49 * PgUp key
- dc.l up_page
- dc.w $53 * Del key
- dc.l del_left
- dc.w $52 * Ins key
- dc.l toggle
- dc.w $47 * Home key
- dc.l home
- dc.w $4F * End key
- dc.l eof
- dc.l default
-
- end